import { axios } from '@/utils/request'

/**
 * 分页查询biz_gateway_channel
 *
 * @author ssy
 * @date 2021/09/14 10:36
 */
export function page (parameter) {
    return axios({
        url: '/bizGatewayChannel/page',
        method: 'get',
        params: parameter
    })
}

// 查询通道
export function listChannel (parameter) {
  return axios({
      url: '/bizGatewayChannel/list',
      method: 'get',
      params: parameter
  })
}

// 根据网关主键获取所有通道
export function listGatewayChannel (parameter) {
  return axios({
      url: '/bizGatewayChannel/listChannel',
      method: 'get',
      params: parameter
  })
}

/**
 * 增加biz_gateway_channel
 *
 * @author ssy
 * @date 2021/09/14 10:36
 */
export function add (parameter) {
    return axios({
        url: '/bizGatewayChannel/add',
        method: 'post',
        data: parameter
    })
}

/**
 * 编辑biz_gateway_channel
 *
 * @author ssy
 * @date 2021/09/14 10:36
 */
export function edit (parameter) {
    return axios({
        url: '/bizGatewayChannel/edit',
        method: 'post',
        data: parameter
    })
}

// 通道解绑
export function unbinding (parameter) {
  return axios({
      url: '/bizGatewayChannel/unbinding',
      method: 'post',
      data: parameter
  })
}

// 通道标记
export function mark (parameter) {
  return axios({
      url: '/bizGatewayChannel/mark',
      method: 'post',
      data: parameter
  })
}
// 查询通道绑定信息
export function queryChannelBindingInfo (parameter) {
  return axios({
    url: '/bizGatewayChannel/queryChannelBindingInfo',
    method: 'get',
    params: parameter
  })
}

export function editById (parameter) {
  return axios({
    url: '/bizGatewayChannel/editById',
    method: 'post',
    data: parameter
  })
}

/**
 * 查看详情biz_gateway_channel
 *
 * @author ssy
 * @date 2021/09/14 10:36
 */
export function detail (parameter) {
    return axios({
        url: '/bizGatewayChannel/detail',
        method: 'get',
        params: parameter
    })
}

/**
 * 删除biz_gateway_channel
 *
 * @author ssy
 * @date 2021/09/14 10:36
 */
export function del (parameter) {
    return axios({
        url: '/bizGatewayChannel/delete',
        method: 'post',
        data: parameter
    })
}

export function getChannelList (parameter) {
  return axios({
    url: '/bizGatewayChannel/list',
    method: 'get',
    params: parameter
  })
}

export function channelList (parameter) {
  return axios({
    url: '/bizGatewayChannel/getChannelList',
    method: 'get',
    params: parameter
  })
}
